package com.mjp.learn.design.proxy.cglibProxy;

import net.sf.cglib.proxy.Enhancer;

public class Test {

    public static void main(String[] args) {
        Enhancer enhancer = new Enhancer();
        enhancer.setSuperclass(Move.class);
        enhancer.setCallback(new TimeMethodInterceptor());
        Move move = (Move) enhancer.create();
        move.move();
    }
}
